package cn.com.my.yzt.more;

public class T {
	private Double moiPostage;
	private Double mopPrice;
	private Double mopOriginalPrice;//商品原价
	
	public Double getMoiPostage() {
		if(moiPostage == null) moiPostage = new Double(0);
		return moiPostage;
	}


	public void setMoiPostage(Double moiPostage) {
		this.moiPostage = moiPostage;
	}


	public Double getMopPrice() {
		return mopPrice;
	}


	public void setMopPrice(Double mopPrice) {
		this.mopPrice = mopPrice;
	}


	public Double getMopOriginalPrice() {
		return mopOriginalPrice;
	}


	public void setMopOriginalPrice(Double mopOriginalPrice) {
		this.mopOriginalPrice = mopOriginalPrice;
	}


	public static void main(String[] args) {
		T t = new T();
		System.out.println(t == null);
		/*
		double yes = 2 + t.getMoiPostage();
		System.out.println(yes);*/
		
		t.setMopOriginalPrice(new Double(8));
		t.setMopPrice(new Double(3));
		
		System.out.println(t.getMopOriginalPrice() - t.getMopPrice());
	}

}
